using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Repo {
	public class Elem:Control {
		string _fstr;
		object[] _args;
		public Elem GetArgs(params object[] args) { return new Elem(_fstr,args); }
		public Elem(string fstr) : this(fstr,new object[0]) { }
		public Elem(string fstr,params object[] args) {
			_fstr=fstr;
			_args=args;
		}
		protected override void Render(HtmlTextWriter writer) {
			writer.Write(string.Format(_fstr,_args));
		}
	}
}
